package com.kgc.mapper;

import com.kgc.bean.GoodsItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface NewProductPushMapper {
    @Select("SELECT * FROM goods_item WHERE TO_DAYS(NOW()) - TO_DAYS(goods_createdate) <= 1")
    List<GoodsItem> queryNewProduct();
}
